﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            USBFlashDisk u1 = new USBFlashDisk();
            u1.Brand = "金士顿 64G";
            u1.Read();
            u1.Write();
            Console.WriteLine();
            MobileHardDisk m1 = new MobileHardDisk();
            m1.Brand = "三星 100G";
            m1.Read();
            m1.Write();

            Console.WriteLine();
            Computer com = new Computer();
            com.Brand = "联想";
            com.Usb1 = u1;
            com.Usb2 = m1;
            com.Power();
            com.ReadData();
            Console.WriteLine();
            com.wirteData();
            com.End();
        }
    }
 
}
